﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCDto.Trading.Purchase.GoodsPurchaseChecklist;

namespace BCDto.Trading.Purchase.GoodsPurchase
{
    /// <summary>
    /// 商品采购单
    /// </summary>
    public class GoodsPurchaseRequestDto
    {
        /// <summary>
        /// 商品采购单编号
        /// </summary>		
        [Display(Name = "商品采购单编号")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [StringLength(50, MinimumLength = 4, ErrorMessage = "{0} 长度应大于{2} 且小于{1}")]
        public string GoodsPurchaseNo { get; set; }
        /// <summary>
        /// 定金金额
        /// </summary>		
        [Display(Name = "定金金额")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public decimal DepositAmount { get; set; }
        /// <summary>
        /// 尾款金额
        /// </summary>		
        [Display(Name = "尾款金额")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public decimal LastPaymentAmount { get; set; }
        /// <summary>
        /// 合计金额
        /// </summary>		
        [Display(Name = "合计金额")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public decimal RecordAmount { get; set; }
        /// <summary>
        /// 支持售出后次月付尾款
        /// </summary>		
        [Display(Name = "支持售出后次月付尾款")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public bool SupportSoldPayment { get; set; }
        
    }
}

